package com.chengjue.service.impl;

import com.chengjue.mapper.TbItemMapper;
import com.chengjue.pojo.TbItem;
import com.chengjue.pojo.TbItemExample;
import com.chengjue.service.ItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 商品管理 Service
 */

@Service
public class ItemServiceImpl implements ItemService{
    @Autowired
    TbItemMapper tbItemMapper;

    /**
     * 根据主键查询
     * @param id  商品id
     * @return
     */
    @Override
    public TbItem getItmById(Long id) {
        return tbItemMapper.selectByPrimaryKey(id);
    }
}
